let radio = document.getElementById("radio").getElementsByTagName("input");
let text = document.getElementById("oneUpdate");
let submit = document.getElementById("submit");
let textAddEwork = document.getElementById("one");
let c_trade = document.getElementById("c_trade");
submit.onclick = function() {
    for (var i = 0; i < radio.length; i++) {
        if (radio[i].checked) {
            try{
                text.value = radio[i].value;
            }catch (error) {

            }
            try{
                textAddEwork.value = radio[i].value;
            }catch (error) {

            }
            try{
                c_trade.value = radio[i].value;
            }catch (error) {

            }

        }
    }
}
